<?php
session_start();
$_SESSION['c_seat'] = array();
$idx = 1;
for ($i = 0; $i < $_SESSION['num']; $i++) {
	if(isset($_POST['a'.$idx])){
		$_SESSION['c_seat'][] = $_POST['a'.$idx];
	}
	if(isset($_POST['b'.$idx])){
		$_SESSION['c_seat'][] = $_POST['b'.$idx];
	}
	if(isset($_POST['c'.$idx])){
		$_SESSION['c_seat'][] = $_POST['c'.$idx];
	}
	if(isset($_POST['d'.$idx])){
		$_SESSION['c_seat'][] = $_POST['d'.$idx];
	}
	$idx++;
}
header("Location:../view/confirm.php");
?>